package file.untils;

import file.constant.PhotoEnum;
import file.constant.SysConstant;

/**
 * 获取各尺寸的值
 * @Author: zou
 * @email: 704572528@qq.com
 * @Date: 2020/10/29 11:59
 */
public class PhotoUntils {

    private final static String PNG = ".png";
    /**
     * 获取文件夹图片
     * @param photoEnum 16 32 48
     * @return
     */
    public static String  getFolderSize (PhotoEnum photoEnum) {
        String imageFolder = SysConstant.IMAGE_FOLDER;
        imageFolder = imageFolder.replaceAll(PNG,"");
        imageFolder = imageFolder + photoEnum.getSize() + PNG;
        return imageFolder;
    }
    /**
     * 获取文件图片
     * @param photoEnum 16 32 48
     * @return
     */
    public static String  getFileSize (PhotoEnum photoEnum) {
        String imageFolder = SysConstant.IMAGE_FILE;
        imageFolder = imageFolder.replaceAll(PNG,"");
        imageFolder = imageFolder + photoEnum.getSize() + PNG;
        return imageFolder;
    }

    public static void main(String[] args) {
        String folderSize = getFolderSize(PhotoEnum.lager);
        System.out.println(folderSize);
    }
}
